package com.gec.service.impl;

import java.util.List;

import com.gec.dao.ShopDao;
import com.gec.dao.Impl.ShopDaoImpl;
import com.gec.entity.Shop;
import com.gec.service.ShopService;

public class ShopServiceImpl implements ShopService {
	private ShopDao dao = new ShopDaoImpl();
	
	@Override
	public List<Shop> findPage(int page, int row) {
		return dao.selectPage(page,row);
	}

	@Override
	public long findRowCount() {
		return dao.selectCount();
	}

	@Override
	public List<Shop> findPageByName(String name, int page, int row) {
		return dao.selectPageByName(name, page, row);
	}

	@Override
	public long findRowCount(String name) {
		return dao.selectCount(name);
	}

	@Override
	public Shop findShopId(int shopid) {
		return dao.selectShopId(shopid);
	}

}
